import { http } from '@/utils'

export const getAppearanceDetailByIdApi = (query?: any) =>
  http.get({
    url: '/internal_affairs_manage/get_appearance_by_id',
    method: 'GET',
    query
  })

export const getAppearanceRecordsApi = (query?: any) =>
  http.get({
    url: '/internal_affairs_manage/get_appearance_records',
    method: 'GET',
    query
  })

export const postAppearanceApi = (data?: any) =>
  http.post({
    url: '/internal_affairs_manage/add_appearance',
    method: 'POST',
    data
  })

export const deleteAppearanceApi = (data?: any) =>
  http.delete({
    url: '/internal_affairs_manage/delete_appearance',
    method: 'DELETE',
    data
  })
